import request from '../utils/request'

export const userApi = {
  async login(credentials) {
    return request.post('/auth/login', credentials)
  },

  async register(userData) {
    return request.post('/auth/register', userData)
  },

  async updateProfile(profileData) {
    return request.put('/auth/profile', profileData)
  },

  async updatePassword(passwordData) {
    return request.put('/auth/password', passwordData)
  },

  async getCurrentUser() {
    return request.get('/auth/me')
  }
} 